html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', SimSun, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: #f5f7fa;
}

.content {
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: relative;
}

/* 工具栏容器样式 */
.toolbar-container {
  display: flex;
  justify-content: flex-start;
  padding: 0 20px;  /* Adjust padding to align with canvas */
  background-color: #f5f7fa;
  margin: 20px 0;  /* Adjust margin to align with canvas */
}

/* 工具栏样式 */
.toolbar {
  width: 100%;  /* This property sets the width of the toolbar */
  padding: 10px 20px;
  background-color: #fff;
  border: 1px solid #dcdfe6;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
  border-radius: 4px;
  z-index: 100;
  position: relative;
}

.button-group {
  display: inline-flex;
  align-items: center;
  margin-right: 20px;
  position: relative;
}

.button-group:not(:last-child):after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background-color: #dcdfe6;
}

.toolbar-btn {
  padding: 8px 15px;
  margin-right: 8px;
  background-color: #fff;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: #606266;
  transition: .3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
  outline: none;
}

.toolbar-btn:hover {
  color: #409eff;
  border-color: #c6e2ff;
  background-color: #ecf5ff;
}

.toolbar-btn:active {
  color: #3a8ee6;
  border-color: #3a8ee6;
  outline: none;
}

.toolbar-btn.primary {
  color: #fff;
  background-color: #409eff;
  border-color: #409eff;
}

.toolbar-btn.primary:hover {
  background: #66b1ff;
  border-color: #66b1ff;
  color: #fff;
}

.toolbar-btn.primary:active {
  background: #3a8ee6;
  border-color: #3a8ee6;
  color: #fff;
}

/* 禁用状态 */
.toolbar-btn:disabled {
  color: #c0c4cc;
  cursor: not-allowed;
  background-image: none;
  background-color: #fff;
  border-color: #ebeef5;
}

.toolbar-btn.primary:disabled {
  color: #fff;
  background-color: #a0cfff;
  border-color: #a0cfff;
}

/* 画布容器样式 */
#canvas {
  flex: 1;
  height: calc(100vh - 140px) !important;  /* Adjust height as needed */
  background-color: #fff;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
  margin-top: 2px;
  margin-left: 20px;
  margin-bottom: 20px;
  border-radius: 4px;
}

/* 属性面板样式 */
#properties-panel {
  position: absolute;
  right: 20px;
  top: 95px;  /* This property sets the top position of the properties panel */
  bottom: 20px;  /* This property sets the bottom position of the properties panel */
  width: 300px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
  overflow: auto;
  z-index: 100;
}

/* 适配属性面板存在时的画布宽度 */
.content.with-properties-panel #canvas {
  margin-right: 340px;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-thumb {
  background: #c0c4cc;
  border-radius: 6px;
}

::-webkit-scrollbar-track {
  background: #f5f7fa;
}

/* 浮动文本框样式 */
.floating-textarea {
  position: absolute;
  top: 97px;
  left: 20px;
  right: 20px;
  bottom: 20px;  /* Adjust bottom to change height */
  z-index: 100;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
  padding: 10px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  resize: none;
  width: calc(100% - 60px);  /* Adjust width to fit within the browser window */
  overflow: auto;  /* Add scroll functionality */
  white-space: pre;  /* Remove word wrap */
}